package conversion.bean;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User {
    //用户uuId
    private String UUID;
    //用户名
    private String username;
    //用户密码
    private String password;
    //用户邮箱
    private String email;
    //头像路径
    private String avatar;
    //性别
    private Gender gender;
    //电话
    private String phone;
    //地址
    private String address;

    private ROLE role;

    private Integer enabled;

    private Integer accountNoExpired;

    private Integer credentialsNoExpired;

    private Integer accountNoLocked;

    public enum Gender {
        MALE,
        FEMALE,
        OTHER
    }

    public enum ROLE {
        ROLE_USER,
        ROLE_VIP,
        ROLE_ADMIN
    }


}
